<html>
     <head>
          <style>
               @page { margin: 15px 50px; }
               #header 
               {
                    left: 0px; 
                    top: -140px; 
                    right: 0px; 
                    /*height: 130px;*/ 
                    text-align: center; 
                    
                    margin:4px auto;
                    border-bottom:1px solid #666;
               }
               #logogogo{width:68px;float:left;}
               #header p
               {
                    font-size:10px;
                    font-family: Times New Roman;
					margin:0;
               }

               #header h1
               {
                    color:#666; 
                    font-weight:lighter;
                    margin:0 0 0 0;
                    font-family: Times New Roman;
					font-size	: 20px;
               }
			   #header h3
			   {
				
                    font-weight:lighter;
                    font-family: Helvetica;
			   }
               body{
                    outline:none;
                    font-family:sans-serif, Arial, Helvetica, sans-serif; 
                    font-size:88%;
                    /*line-height: 20px;*/
               }
			   .table-tengah td
			   {
				text-align	: center;
			   }
               table {
                    max-width: 100%;
                    border-collapse: collapse;
                    border-spacing: 0;
					font-size	: 12px;
               }
               .table {
                    width: 100%;
                    margin-bottom: 18px;
               }
               .table th, .table td {
                    padding: 8px;
                    line-height: 18px;
                    text-align: left;
                    border-top: 1px solid #ddd;
               }
               .table th {
                    font-weight: bold;
                    vertical-align: center;
               }
               .table td {
                    vertical-align: center;
					font-size	: 10px;
               }
               .table thead:first-child tr th, .table thead:first-child tr td {
                    border-top: 0;
               }
               .table tbody + tbody {
                    border-top: 2px solid #ddd;
               }
               .table-condensed th, .table-condensed td {
                    padding: 4px 5px;
               }
               .table-bordered {
                    border: 1px solid #ddd;
                    border-collapse: separate;
                    -webkit-border-radius: 4px;
                    -moz-border-radius: 4px;
                    border-radius: 4px;
               }
               .table-bordered th + th,
               .table-bordered td + td,
               .table-bordered th + td,
               .table-bordered td + th {
                    border-left: 1px solid #ddd;
                    border-bottom: 1px solid #ddd;
               }
               .table-bordered thead:first-child tr:first-child th, .table-bordered tbody:first-child tr:first-child th, .table-bordered tbody:first-child tr:first-child td {
                    border-top: 0;
               }
               .table-bordered thead:first-child tr:first-child th:first-child, .table-bordered tbody:first-child tr:first-child td:first-child {
                    -webkit-border-radius: 4px 0 0 0;
                    -moz-border-radius: 4px 0 0 0;
                    border-radius: 4px 0 0 0;
               }
               .table-bordered thead:first-child tr:first-child th:last-child, .table-bordered tbody:first-child tr:first-child td:last-child {
                    -webkit-border-radius: 0 4px 0 0;
                    -moz-border-radius: 0 4px 0 0;
                    border-radius: 0 4px 0 0;
               }
               .table-bordered thead:last-child tr:last-child th:first-child, .table-bordered tbody:last-child tr:last-child td:first-child {
                    -webkit-border-radius: 0 0 0 4px;
                    -moz-border-radius: 0 0 0 4px;
                    border-radius: 0 0 0 4px;
               }
               .table-bordered thead:last-child tr:last-child th:last-child, .table-bordered tbody:last-child tr:last-child td:last-child {
                    -webkit-border-radius: 0 0 4px 0;
                    -moz-border-radius: 0 0 4px 0;
                    border-radius: 0 0 4px 0;
               }
			   .table-striped tr
			   {
                    border : 1px solid;
			   }
               .table-striped tbody tr:nth-child(odd) td, .table-striped tbody tr:nth-child(odd) th {
					/*background-color: #f9f9f9;*/
               }
			   .table-bordered th
			   {
				font-size	: 11px;
			   }
			   .table-bordered td
			   {
				font-size	: 10px;
			   }
			   .table-nilai th
			   {
				background-color	: #f9f9f9;
				font-size	: 10px;
			   }
          </style>
     </head>
          <body>
               <div id="header">
                    <span id="logogogo"><?php echo image_thumb("data/gambar/Logo-SMAN-1-Kota-Sukabumi.png", 100, 100) ?></span>
                    <h1>SEKOLAH MENENGAH NEGERI 1 KOTA SUKABUMI</h1>
                    <p>Jalan RH. Didi Sukardi No. 124 Telp. (0266) 221371 Kode Pos : 43143<br/>Kota Sukabumi</p>
                    <h3>Daftar Jadwal Pelajaran <?php echo $data_jadwal->row()->tahun_angkatan ?> Kelas <?php echo $data_jadwal->row()->nama_kelas ?> </h3>
               </div>
               <!--header-->
			   <div style="float:left;width:49%">
			   <table width="100%">
			   <tr>
					<td>Tahun Angkatan</td>
					<td>:</td>
					<td><?php echo $data_jadwal->row()->tahun_angkatan ?></td>
			   </tr>
			   <tr>
					<td>Jurusan</td>
					<td>:</td>
					<td><?php echo $data_jadwal->row()->status_kelas ?></td>
			   </tr>
			   <tr>
					<td>Tingkat Kelas / Semester</td>
					<td>:</td>
					<td><?php echo $data_jadwal->row()->tingkat_kelas.' / '.$semester ?></td>
			   </tr>
			   </table>
			   </div>
			   <div style="float:right;width:49%">
			   <table width="100%">
			   <tr>
					<td>Kelas</td>
					<td>:</td>
					<td><?php echo $data_jadwal->row()->nama_kelas ?></td>
			   </tr>
			   <tr>
					<td>Nama Wali Kelas</td>
					<td>:</td>
					<td><?php echo $data_jadwal->row()->wali_kelas ?></td>
			   </tr>
			   <tr>
					<td>Nomor Induk Guru</td>
					<td>:</td>
					<td><?php echo $data_jadwal->row()->induk_wali ?></td>
			   </tr>
			   </table>
			   </div>
			   <div style="clear:both"></div>
			   <br/>
			   <table class="table-condensed table-striped table-bordered table-nilai" border="0" width="100%">
                               <thead>
                                   
                               <tr>
                                    <th width="3%">No.</th>
                                    <th width="12%">Hari</th>
                                    <th width="5%">Jam Ke</th>
                                    <th width="15%">Waktu Pelajaran</th>
                                    <th width="20%">Mata Pelajaran</th>
                                    <th width="25%">Nama Pengajar</th>
                                    <th width="20%">Ruangan</th>
				</tr>
                               </thead>
                               <?php 
                               $nomor = 0;
                               foreach ($data_jadwal->result() as $v_jadwal)
                               {
                                   $nomor++;
                                   if($nomor == 1)
                                   {
                                       echo '<tr>';
                                        echo '<td align="right">'.$nomor.'.</td>';
                                        echo '<td>'.hari_indo($v_jadwal->hari).'</td>';
                                        echo '<td align="center">1</td>';
                                        echo '<td align="center">07.15 - 08.15</td>';
                                        echo '<td>Upacara Bendera</td>';
                                        echo '<td>-</td>';
                                        echo '<td>Lapangan Upacara</td>';
                                       echo '</tr>';
                                       $nomor++;
                                   }
                                   elseif($v_jadwal->jam_pelajaran == 3)
                                   {
                                       echo '<tr>';
                                    echo '<td align="right">'.$nomor.'.</td>';
                                    echo '<td>'.hari_indo($v_jadwal->hari).'</td>';
                                    echo '<td align="center">-</td>';
                                    echo '<td align="center">09.15 - 09.30</td>';
                                    echo '<td align="center" colspan="3">Istirahat Pertama</td>';
                                       echo '</tr>';
                                       $nomor++;
                                   }
                                   elseif($v_jadwal->jam_pelajaran == 6)
                                   {
                                       echo '<tr>';
                                    echo '<td align="right">'.$nomor.'.</td>';
                                    echo '<td>'.hari_indo($v_jadwal->hari).'</td>';
                                    echo '<td align="center">-</td>';
                                    echo '<td align="center">12.30 - 13.00</td>';
                                    echo '<td align="center" colspan="3">Istirahat Kedua</td>';
                                       echo '</tr>';
                                       $nomor++;
                                   }
                                   echo '<tr>';
                                   echo '<td align="right">'.$nomor.'.</td>';
                                   echo '<td>'.hari_indo($v_jadwal->hari).'</td>';
                                   echo '<td align="center">'.$v_jadwal->jam_pelajaran.'</td>';
                                   echo '<td align="center">'.$v_jadwal->waktu.'</td>';
                                   echo '<td>'.$v_jadwal->nama_pelajaran.'</td>';
                                   echo '<td>'.$v_jadwal->pengajar.'</td>';
                                   echo '<td>'.$v_jadwal->ruangan.'</td>';
                                   echo '</tr>';
                               } 
                               ?>
			   </table>
	</body>
</html>